package com.vogue.supplymall.shop.domain.dao.impl;

import com.vogue.supplymall.shop.domain.dao.AdministrativeareaDao;
import com.vogue.supplymall.shop.domain.mapper.AdministrativeareaMapper;
import com.vogue.supplymall.shop.domain.model.Administrativearea;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * The type Administrativearea dao.
 *
 * @aouthor: zhangliang
 * @date: Create in 2017-12-19
 */
@Repository("administrativeareaDao")
public class AdministrativeareaDaoImpl extends BaseDaoImpl<Administrativearea, Long> implements AdministrativeareaDao {

    @Resource
    private AdministrativeareaMapper administrativeareaMapper;

    @Override
    public List<Administrativearea> findArea(Integer level) {
        return administrativeareaMapper.findAreaBylevel(level);
    }

	@Override
	public List<Administrativearea> findAllAreaOfMinLevel(Integer level) {	
		return administrativeareaMapper.findAllAreaOfMinLevel(level);
	}
    
}
